<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>执行任务</title>
  <link href="${pageContext.request.contextPath }/css/style.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/main.js"></script>
</head>

<body>
  <div id="main">
  <div id="title">
  <table>
    <tr>
      <td class="td01">&nbsp;</td>
      <td class="td01"><img src="${pageContext.request.contextPath }/images/main_28.gif"></td>
      <td class="td02">执行任务</td>
    </tr>
  </table>
  </div>
  <form action="${pageContext.request.contextPath}/work/expense!performTask.action" method="post">
  <s:hidden name="taskId" value="%{#parameters.taskId}"></s:hidden>
  <s:hidden name="id"></s:hidden>
  <div id="query">
    <table class="table01">
      <tr>
	    <td width="20%" class="td_02">任务名称</td>
		<td width="30%" class="td_02" style="color: blue">
		  ${taskName }
		</td>
		<td width="10%" class="td_02">申请人</td>
		<td class="td_02"  style="color: blue">
		  ${user.userName }
		</td>
	  </tr>
    
      <tr>
	    <td width="20%" class="td_02">报销金额</td>
		<td width="30%" class="td_02">
		  <s:textfield name="money" cssClass="input"></s:textfield>
		</td>
	  </tr>
      <tr>
		<td class="td_02">报销原因</td>
		<td class="td_02">
		
		  <s:textarea name="reason" cssClass="textarea" rows="5" cssStyle="width:98%"></s:textarea>
		</td>
	  </tr>
	  <!-- 审批意见 -->
      <tr>
		<td class="td_02" >审批意见</td>
		<td class="td_02" colspan="3">
		  <s:textarea name="comment" cssClass="textarea" rows="5" cssStyle="width:98%"></s:textarea>
		</td>
	  </tr>	 
	  <c:forEach items="${commentList}" var="c">
      <tr>
		<td class="td_02" >${c.taskName }</td>
		<td class="td_02"  colspan="3" style="color: blue;">
			${c.comment }
		</td>
	  </tr>	  
	  </c:forEach>
    </table>
  </div>
  <div id="save">
    <s:iterator value="#buttonList" var="v">
    	<input type="submit" name="transition" class="buttonface" value="${v }">
    </s:iterator>
  </div>
  </form>  
  </div>   
</body>
</html>
